package com.woniuxy.aspect;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * 后置通知：如果在核心业务功能里边有异常出现，那么后置通知将不会执行
 */
public class MyAfeterAspect implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("日志记录");
    }
}
